package com.lagou.homework02;

public class PhoneTest {

    public static void main(String[] args) {

        CellPhone cp = new OldPhone();
        cp.call();
        cp.message();

        System.out.println("--------------------");
        CellPhone cp2 = new NewPhone();
        cp2.call();
        cp2.message();
        IPay ip = new IPay() {
            @Override
            public void IPlayGame() {
                System.out.println("新手机的游戏不好玩啊！");
            }
        };
        ip.IPlayGame();
    }
}
